<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/getsaveobj', function()
{
	$ojt=Object::select('object_id');
	//echo 'test';
	$cho= DB::table("h_saveobject")->get();


	foreach($cho as $c){

		echo $c->id.' => '.$c->object_id;
		echo '<br>';

		$ojt->orwhere('object_id',$c->object_id);

	}

	$oj=$ojt->get();

	foreach($oj as $bb){
		echo $bb->object_id;
		echo '<br>';
	}


});
Route::get('/', function()
{
	//return View::make('hello');
	//echo 'test';
	$cho= DB::table("h_client")->first();
	//print_r($cho);
});

Route::resource('/abc', 'PostsController@abc');
Route::resource('/market/building_name', 'PostsController@marketBuilding_name');

Route::resource('/object/caseName', 'PostsController@objectCaseName');
Route::resource('/object/buildingName', 'PostsController@objectBuildingName');


Route::get('getClientExcelAll', "HomeController@excel");
Route::get('getClientExcelById', "HomeController@getClientExcelById");

Route::get('cliente', "HomeController@getClientExcel");

Route::post('postClientId', "HomeController@postClientId");


Route::post('postObjectId', "ObjectController@postObjectId");
Route::get('getObjectIdExcel', "ObjectController@getObjectIdExcel");



Route::post('postMarketId', "MarketController@postMarketId");
Route::get('getMarketIdExcel', "MarketController@getMarketIdExcel");
//postMarketIdExcel



Route::get('getMarket', "MarketController@mrk");
Route::get('getObj', "ObjectController@mrk");
Route::get('getAllDB', "MarketController@allDb");


Route::get('getOjCl', "ObjectController@getOjCl");
Route::get('getMkCl', "MarketController@getMkCl");






